{include file="header.tpl" title="HRFISETUP"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td nowrap="nowrap">{$lbl_STYPE}</td>
    <td style="color:#FF0000;"><select id="STYPE" name="STYPE" size="1" style="background:{$colorSTYPE};width:100px;" onChange="getIDD();">
		<option value=""/>
 		{foreach from=$cbo_stype key=k item=v}
      	<option value="{$k}" {if $STYPE eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>
     * </td>
	 <td nowrap="nowrap">{$lbl_IDD}</td>
	 <td style="color:#FF0000"><div id="IDD_container">
	 	<input type="text" name="IDD" value="{$IDD}" maxlength="1" readonly="true" style="width:100px;"/> *
	 </div>
	 </td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_APPCODE}</td>
    <td colspan="3" style="color:#FF0000;">
    	<select name="APPCODE" size="1" style="width:100px;background:{$colorAPPCODE};">
		<option value=""/>
 		{foreach from=$cbo_appcode key=k item=v}
      	<option value="{$k}" {if $APPCODE eq $k} selected="selected" {/if}>{$k}</option>
 		{/foreach}
		</select> *		
	</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_SUBTXN}</td>
    <td style="color:#FF0000;">
		<select id="SUBTXN" name="SUBTXN" size="1" style="background:{$colorSUBTXN};width:100px;" onChange="document.getElementById('tmpDORC').selectedIndex=this.selectedIndex; document.getElementById('DORC').value=document.getElementById('tmpDORC').value">
		<option value=""/>
 		{foreach from=$cbo_subtxn key=k item=v}
      	<option value="{$k}" {if $SUBTXN eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select> *		
	</td>
	<td nowrap="nowrap">{$lbl_DORC}</td>
    <td style="color:#FF0000;">
	<select id="tmpDORC" name="tmpDORC" size="1" style="background:{$colorDORC};width:100px;" disabled="disabled">
	<option value=""/>
 	{foreach from=$cbo_dorc key=k item=v}
    <option value="{$k}" {if $DORC eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 	{/foreach}
	</select> * <input type="hidden" name="DORC" id="DORC" value="{$DORC}"/>
	</td>
    </tr>
  	<tr>
    <td nowrap="nowrap">{$lbl_AFFCODE}</td>
    <td colspan="3" style="color:#FF0000;">
	<input id="AFFCODE" name="AFFCODE" type="text" value="{$AFFCODE}"  maxlength="1" style="background:{$colorAFFCODE};width:100px;" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onblur="this.value=this.value.toUpperCase().replace(' ','');"/> *
    </td>
    </tr> 	
	<tr>
    <td nowrap="nowrap">{$lbl_ACTNO}</td>
    <td>
	<input name="ACTNO" id="ACTNO" type="text" value="{$ACTNO}" size="25" maxlength="20" style="background:{$colorACTNO};" onkeyup="this.value=this.value.toUpperCase().replace(' ','');checkACTNO(this);" onblur="this.value=this.value.toUpperCase().replace(' ','');checkACTNO(this);"/>					
	</td>
	<td nowrap="nowrap">{$lbl_ACTFLD}</td>
    <td>
    	<select  id="ACTFLD" name="ACTFLD" size="1" style="width:100px;background:{$colorACTFLD};" {if $ACTNO neq ''}disabled="disabled" {/if}>
		<option value=""/>
 		{foreach from=$cbo_actfld key=k item=v}
      	<option value="{$k}" {if $ACTFLD eq $k} selected="selected" {/if}>{$k}</option>
 		{/foreach}
		</select>	
	</td>
	</tr>
	<tr>
    <td nowrap="nowrap">{$lbl_CURCODE}</td>
    <td>
    	<select name="CURCODE" size="1" style="width:100px;">
		<option value=""/>
 		{foreach from=$cbo_curcode key=k item=v}
      	<option value="{$k}" {if $CURCODE eq $k} selected="selected" {/if}>{$k}</option>
 		{/foreach}
		</select>	
	</td>
	<td nowrap="nowrap">{$lbl_CURFLD}</td>
    <td>
    	<input name="CURFLD" value="{$CURFLD}" size="40" maxlength="50" disabled="disabled"/>		
	</td>
    </tr>
	<tr>
    <td>{$lbl_AMOUNT}</td>
    <td>
	<input name="AMOUNT" id="AMOUNT" type="text" value="{$AMOUNT}" size="25" maxlength="25"  onBlur="checkCurrency20(this,this.value); formatNumber(this,this.value);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" style="text-align:right;" disabled="disabled"/>	
	</td>
	<td nowrap="nowrap">{$lbl_AMTFLD}</td>
    <td style="color:#FF0000;">
    	<select id="AMTFLD" name="AMTFLD" size="1" style="background:{$colorAMTFLD};">
		<option value=""/>
 		{foreach from=$cbo_fldname_hrformular key=k item=v}
      	<option value="{$k}" {if $AMTFLD eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select> *			
	</td>
	</tr>
	<tr>
	<td>{$lbl_RMKFLD1}</td>
    <td>
		<select id="RMKFLD1" name="RMKFLD1" size="1" {if $RMKLINE1 neq ''}disabled="disabled" {/if}>
		<option value=""/>
 		{foreach from=$cbo_rmkfld key=k item=v}
      	<option value="{$k}" {if $RMKFLD1 eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>		
	</td>
    <td>{$lbl_RMKLINE1}</td>
    <td>
		<input name="RMKLINE1" value="{$RMKLINE1}" size="40" maxlength="50" onKeyUp="checkRMKLINE(this,1);" onBlur="checkRMKLINE(this,1);"/>		
	</td>	
	</tr>
	<tr>
	<td>{$lbl_RMKFLD2}</td>
    <td>
		<select id="RMKFLD2" name="RMKFLD2" size="1" {if $RMKLINE1 neq ''}disabled="disabled" {/if}>
		<option value=""/>
 		{foreach from=$cbo_rmkfld key=k item=v}
      	<option value="{$k}" {if $RMKFLD2 eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>		
	</td>
    <td>{$lbl_RMKLINE2}</td>
    <td>
		<input name="RMKLINE2" value="{$RMKLINE2}" size="40" maxlength="50"  onKeyUp="checkRMKLINE(this,2);" onBlur="checkRMKLINE(this,2);"/>		
	</td>	
	</tr>
	<tr>
	<td>{$lbl_RMKFLD3}</td>
    <td>
		<select id="RMKFLD3" name="RMKFLD3" size="1" {if $RMKLINE1 neq ''}disabled="disabled" {/if}>
		<option value=""/>
 		{foreach from=$cbo_rmkfld key=k item=v}
      	<option value="{$k}" {if $RMKFLD3 eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>		
	</td>
    <td>{$lbl_RMKLINE3}</td>
    <td>
		<input name="RMKLINE3" value="{$RMKLINE3}" size="40" maxlength="50"  onKeyUp="checkRMKLINE(this,3);" onBlur="checkRMKLINE(this,3);"/>		
	</td>	
	</tr>
	<tr>
	<td>{$lbl_RMKFLD4}</td>
    <td>
		<select id="RMKFLD4" name="RMKFLD4" size="1" {if $RMKLINE1 neq ''}disabled="disabled" {/if}>
		<option value=""/>
 		{foreach from=$cbo_rmkfld key=k item=v}
      	<option value="{$k}" {if $RMKFLD4 eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 		{/foreach}
		</select>		
	</td>
    <td>{$lbl_RMKLINE4}</td>
    <td>
		<input name="RMKLINE4" value="{$RMKLINE4}" size="40" maxlength="50"  onKeyUp="checkRMKLINE(this,4);" onBlur="checkRMKLINE(this,4);"/>		
	</td>	
	</tr>
	<tr>
	<td>{$lbl_SEQNO}</td>
    <td style="color:#FF0000">
		<select id="SEQNO" name="SEQNO" size="1" style="width:100px;background:{$colorSEQNO};">
		<option value=""/>
 		{foreach from=$cbo_seqno key=k item=v}
      	<option value="{$k}" {if $SEQNO eq $k} selected="selected" {/if}>{$k}</option>
 		{/foreach}
		</select> *		
	</td>
    <td nowrap="nowrap">{$lbl_ABRNFLD}</td>
    <td>
		<input name="ABRNFLD" value="{$ABRNFLD}" size="40" maxlength="50" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onblur="this.value=this.value.toUpperCase().replace(' ','');"/>		
	</td>	
	</tr>
	<tr>
    <td nowrap="nowrap">{$lbl_COSTID}</td>
    <td colspan="3">
	<input id="COSTID" name="COSTID" type="text" value="{$COSTID}" size="40" maxlength="50"/>
	&nbsp;
	<input type="button" onclick="mywindow = window.open('danhsach_costid.php?name=COSTID', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" id="replacement_binoculars" value="     " />
    </td>
    </tr> 	
	<tr>
    <td nowrap="nowrap">{$lbl_COSTID2}</td>
    <td colspan="3">
	<input id="COSTID2" name="COSTID2" type="text" value="{$COSTID2}" size="40" maxlength="50"/>
	&nbsp; 
	<input type="button" onclick="mywindow = window.open('danhsach_costid.php?name=COSTID2', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" id="replacement_binoculars" value="     " />
    </td>
    </tr> 	
	<tr>
    <td nowrap="nowrap">{$lbl_COSTID3}</td>
    <td colspan="3">
	<input id="COSTID3" name="COSTID3" type="text" value="{$COSTID3}" size="40" maxlength="50"/>
	&nbsp;
	<input type="button" onclick="mywindow = window.open('danhsach_costid.php?name=COSTID3', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" id="replacement_binoculars" value="     " />
    </td>
    </tr> 	
	<tr>    
    <td colspan="4">&nbsp;		
	</td>
</tr>
<td colspan="4" align="right">
<input type="submit" name="capnhat" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>
<tr>
<td >
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
